package top.leix.springdemo.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.leix.springdemo.pojo.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 16435
* @description 针对表【teacher(教师表)】的数据库操作Mapper
* @createDate 2024-04-21 22:23:42
* @Entity top.leix.springdemo.pojo.Teacher
*/
@Mapper
public interface TeacherMapper extends BaseMapper<Teacher> {

    Integer addTeacher(@Param("teacher") Teacher teacher);

    List<Teacher> queryAllTeacher();

    List<Teacher> queryTeacherByName(@Param("userName") String userName);
    Integer updateTeacher(@Param("teacher") Teacher teacher);

    Integer deleteUserAccount(@Param("userAccount") String userAccount);
}




